package cu.ds.logicalsync.fytasrealm.communication.event;

import java.util.EventObject;

import cu.ds.logicalsync.fytasrealm.communication.model.PeerInfo;

/**
 * Container for PeerStatusService events. The source of the event is the Endpoint
 * address of the responding peer
 *  
 * @author r.vashira
 */
@SuppressWarnings("serial")
public class PeerStatusEvent extends EventObject {
	private PeerInfo peerInfo;
	
	public PeerStatusEvent(Object source, PeerInfo peerInfo) {
		super(source);
		this.peerInfo = peerInfo;
	}

	public PeerInfo getPeerInfo() {
		return peerInfo;
	}
}
